<?php
class controller_demo extends __registry_controller
{
    public $_ = array();
    public $_layout = NULL;
    
	public function __construct()
    {	
		/* add class in class demo */
		parent::add_object(array(
			'handle_string'
		));        
	}
	
	/* http://baseurl/seo-demo/ */
	public function index_action()
	{	
	    /* call view index.phtml */
		$shtml = $this->view->view_display('demo');
		return $shtml;
	}
    
	/* http://baseurl/seo-demo/ajax/ */ 
    public function index_ajax_action()
	{
        $this->_layout ='NO_LAYOUT';
        /* Code here ajax */       
	}
	
}